package com.ostrich.cloud.ostrichUserService.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.common.result.PageResult;
import com.ostrich.cloud.ostrichUserService.infra.model.Businessman;
import com.ostrich.cloud.ostrichUserService.infra.model.UserParent;
import com.ostrich.ostrichUserService.dto.CustomerDto;
import com.ostrich.ostrichUserService.dto.bussiness.BusinessmanDto;
import com.ostrich.ostrichUserService.param.bussiness.LoginBusParam;
import com.ostrich.ostrichUserService.param.bussiness.RegBussinessmanParam;
import com.ostrich.ostrichUserService.param.bussiness.UpdateBusParam;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商户表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface BusinessmanService extends IService<Businessman> {

    void addBusiness(RegBussinessmanParam regBus);

    void updateBusState(Integer parentId, String status);

    UserParent businessmanLogin(LoginBusParam loginBusParam);

    PageResult<BusinessmanDto> getAllBusiness(Integer current, Integer size, String status);


    void updateBusinessMessage(Businessman businessman);

    Map<Double, Businessman> getAllBusinessByLocation(String latitude, String logitude, Double radius);

    Map<Double, Businessman> getOneBusinessByLocation  (String latitude, String logitud);
}
